Skip to content

Make unstable WASI-p2 OS-string conversions opt-in - #72

Merged
chipsenkbeil merged 1 commit into
chipsenkbeil:mainfrom
drarijitdas:wasip2-opt-in
Oct 20, 2026
Merged

chipsenkbeil merged 1 commit into
chipsenkbeil:mainfrom
drarijitdas:wasip2-opt-in

Conversation

@drarijitdas

Copy link
Copy Markdown
Contributor

Adds a non-default nightly-wasip2 feature and gates both the unstable crate attribute (feature(wasip2)) and the four std_conversions modules that need std::os::wasi::ffi behind it for target_env = "p2". Stable portable path operations, and behavior on every other target, are unchanged; WASI-p2 builds on stable no longer need a nightly compiler, while the nightly OS-string conversions stay available behind the feature. This deliberately does not claim to stabilize the std WASI-p2 extension traits.

Verified with the repro from #71: cargo +1.96 check --target wasm32-wasip2 fails with E0554 on 0.12.3 and passes with this change; cargo test on the host is unchanged.

Fixes #71

NZBMan added a commit to scryer-media/scryer-plugins that referenced this pull request Oct 17, 2026
Clears RUSTSEC-2026-0367, RUSTSEC-2026-0368 and RUSTSEC-2026-0369.

zip 9 depends on typed-path, whose 0.12.3 release enables
feature(wasip2) unconditionally and so fails the wasm32-wasip2 build on
stable. typed-path is patched to upstream main plus
chipsenkbeil/typed-path#72, which makes that feature opt-in, until a
release carries the fix.

Test fixtures unwrap with_deprecated_encryption, which returns a Result
in zip 9. Bumps the plugin to 1.1.3.
@chipsenkbeil

Copy link
Copy Markdown
Owner

Thanks for tracking this down and putting the fix together! Putting the p2 conversions behind an opt-in feature seems like the right call until std::os::wasi stabilizes there. I'll fix up the formatting on main and get this out as 0.12.4.

@chipsenkbeil
chipsenkbeil merged commit d02245a into chipsenkbeil:main Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

typed-path 0.12.3 fails on stable wasm32-wasip2 because wasip2 is unconditional

2 participants